package com.heitian.ssm.service;

import com.heitian.ssm.model.MessageEntity;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: mishuai
 * Date: 2018-04-26
 * Time: 00:42
 * Des:
 */
public interface MessageService {

    /**
     * 添加留言功能
     * @return
     */
    int insertComment(MessageEntity messageEntity);

    /**
     * 后端查询
     * @return
     */
    List<MessageEntity>   selectByCreatTime();
    /**
     * 根据主键查询
     */
    MessageEntity selectById(Long id);
}
